<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    //如果没有对应名称的存储 则返回null
    console.log(JSON.parse(localStorage.getItem("name")))
</script>
</html>